<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/detail/default.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/detail/component.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
		<script src="{$_C.hy_path}js/detail/modernizr.custom.js"></script>
		
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
             <div class="am-btn-group am-btn-group-xs">
            
            <button data-title="新建" data-id="addhome_" data-href="index.php?g=admin&m=chat&a=add_home" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-plus"></span> 新建</button>
		   
		    </div>
           
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th   class="table-title" style="width:10%;">序号</th>
                <th  class="table-type" style="width:30%;">图片</th>
                <th   class="table-type" style="width:40%;">链接</th>
                <th class="table-set" style="width:20%;">操作</th>
              </tr>
          </thead>
          <tbody>
          	{foreach from=$homes item=ad}
            <tr>
              <td width="10%">{$ad.id}</td>
              <td width="30%" ><img src="/ws{$ad.img}" style="height:30%;"></img></td>
              <td width="40%" style="white-space:nowrap; text-overflow:ellipsis; overflow:hidden;width:500px;  display:block;">{$ad.url}</td>
              <td  width="20%"  >
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                    <button data-title="编辑" data-id="addhome_{$ad.id}" data-href="index.php?g=admin&m=chat&a=add_home&id={$ad.id}" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 编辑</button>
                    <button data-param ="{ url:'index.php?g=admin&m=chat&a=del_home&id={$ad.id}',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                  </div>
                </div>
              </td>
            </tr>
             {/foreach} 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  	<div class="hy_page">
  </div>
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
	
   {include file='../Common/hy_footer.html'}
<script type="text/javascript">
</script>  
		
	</body>
</html>
